package crm.view.tree.verwaltung;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JTree;

import crm.model.teacherPC.Manager;
import crm.view.tree.students.AddStudentDialog;



public class EveryStundetsTreeControll implements ActionListener {
	JTree tree;
	Manager manager;
	public EveryStundetsTreeControll(JTree tree, Manager manager){
		this.manager = manager;
		this.tree = tree;
	}

	public void actionPerformed(ActionEvent ev) {
		String cmd = ev.getActionCommand();
		System.out.println(cmd);
		if (cmd.equals("add")){
			new AddStudentDialog(manager, tree);
		}else if (cmd.equals("remove")){

		}

	}

}
